package me.ratel.demo.eBook.interfaces.web;

import me.ratel.demo.eBook.infrastructure.exceptions.DefaultErrorHeader;
import me.ratel.demo.eBook.infrastructure.exceptions.IErrorHeader;

/**
 * @author: zhouyaming
 * @time: 2016/5/26 17:52
 */
public class WebConstants {
    // 错误码
    public static class ErrorHeader {
        public static final IErrorHeader SUCCESS = new DefaultErrorHeader(100000, "success");

        public static final IErrorHeader SYS_ERROR = new DefaultErrorHeader(100001, "sys error");

        public static final IErrorHeader PARAMETER_ERROR = new DefaultErrorHeader(100002, "参数错误");
    }
}